//  路由处理程序在这里面定义

import { NextResponse } from "next/server";

// 支持的 HTTP 方法： GET POST PUT PATCH DELETE

// GET => /api/userList
export const GET = (request: Request) => {};

// POST => /api/userList
export const POST = async (request: Request) => {
  console.log(12, request);
  // TODO: 在这里处理后端数据
  const data = await request.json();
  return NextResponse.json({
    code: 200,
    message: "操作成功",
    data,
  });
};
